<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addCust.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<meta charset="utf-8">
		<title>My bootStrap</title>
		<link rel="stylesheet" href="css\bootstrap.min.css">
		<script src="js\jquery.js" > </script>
		<script src="js\bootstrap.min.js"> </script>
  </head>
  
 <body>
 <h1>增加问题</h1>
  	<hr>
	  <ul class="breadcrumb" contenteditable="false">
                  <li><a href="${pageContext.request.contextPath}/addCust.jsp">增加问题</a> <span class="divider">/</span></li>
                  <li><a href="${pageContext.request.contextPath}/servlet/listCust">问题列表</a> <span class="divider">/</span></li>
                </ul>
                
	<div class="col-sm-3 col-sm-offset-4">
		<form class="form-horizontal" role="form"
			action="${pageContext.request.contextPath}/servlet/addCustServlet"
			method="post">

			<table class="table table-striped table-bordered">
				<caption>添加问题</caption>
				<tbody>
					<tr>
					<td>问题类型:</td>
						<td><select class="form-control" name="cid">
								<option value="101">JavaBase</option>
								<option value="102">HTML</option>
								<option value="205">C#DB</option>
								<option value="201">SQLBase</option>
								<option value="202">JavaOOP</option>
								<option value="203">C#OOP</option>
								<option value="204">JSP</option>
						</select></td>
					</tr>
					<tr>
						<td>问题:</td>
						<td><input type="text" class="form-control" name="qtext"
							placeholder="请输入问题"></td>
					</tr>

					<tr>
						<td>选项A:</td>
						<td><input type="text" class="form-control" name="option_a"
							placeholder="请输入"></td>
					</tr>

					<tr>
						<td>选项B:</td>
						<td><input type="text" class="form-control" name="option_b"
							placeholder="请输入"></td>
					</tr>

					<tr>
						<td>选项C:</td>
						<td><input type="text" class="form-control" name="option_c"
							placeholder="请输入"></td>
					</tr>
					<tr>
						<td>选项D:</td>
						<td><input type="text" class="form-control" name="option_d"
							placeholder="请输入"></td>
					</tr>

					<tr>
						<td>正确答案:</td>
						<td><input type="text" class="form-control" name="option_true"
							placeholder="请输入"></td>
					</tr>

					<tr>
						<td><br></td>
						<td><button type="submit" class="btn btn-primary"
								value="添加问题">添加问题</button></td>
					</tr>

				</tbody>
			</table>
		</form>
	</div>
	</body>
</html>
